package com.blocks;

import java.util.logging.Level;
import java.util.logging.Logger;

import javax.script.ScriptException;

import com.blocks.blocks.ActionBlock;
import com.blocks.blocks.BatteryBlock;
import com.blocks.blocks.Block;
import com.blocks.blocks.MotorBlock;
import com.blocks.blocks.SoundBlock;
import com.jme3.app.SimpleApplication;
import com.jme3.asset.TextureKey;
import com.jme3.audio.AudioNode;
import com.jme3.audio.AudioRenderer;
import com.jme3.bullet.BulletAppState;
import com.jme3.bullet.PhysicsSpace;
import com.jme3.bullet.collision.shapes.BoxCollisionShape;
import com.jme3.bullet.collision.shapes.CapsuleCollisionShape;
import com.jme3.bullet.collision.shapes.HullCollisionShape;
import com.jme3.bullet.collision.shapes.PlaneCollisionShape;
import com.jme3.bullet.control.CharacterControl;
import com.jme3.bullet.control.RigidBodyControl;
import com.jme3.bullet.control.VehicleControl;
import com.jme3.bullet.joints.HingeJoint;
import com.jme3.bullet.joints.SixDofJoint;
import com.jme3.collision.CollisionResult;
import com.jme3.collision.CollisionResults;
import com.jme3.font.BitmapText;
import com.jme3.input.KeyInput;
import com.jme3.input.MouseInput;
import com.jme3.input.controls.ActionListener;
import com.jme3.input.controls.KeyTrigger;
import com.jme3.input.controls.MouseButtonTrigger;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.math.Matrix3f;
import com.jme3.math.Plane;
import com.jme3.math.Ray;
import com.jme3.math.Vector2f;
import com.jme3.math.Vector3f;
import com.jme3.renderer.queue.RenderQueue.ShadowMode;
import com.jme3.scene.Geometry;
import com.jme3.scene.Node;
import com.jme3.scene.shape.Box;
import com.jme3.scene.shape.Sphere;
import com.jme3.shadow.BasicShadowRenderer;
import com.jme3.system.JmeContext;
import com.jme3.texture.Texture;
import com.jme3.texture.Texture.WrapMode;
import com.jme3.ui.Picture;

public class Main  {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String dir = System.getProperty("script.dir");
		if(dir==null){
			throw new NullPointerException("script.dir not defined Example -Dscript.dir=\"bin/Scripts\"");
		}
		Logger.getLogger("com.jme3").setLevel( Level.WARNING ); //Turn every class from com.jme3 package and below logging the Server
		ScriptBlocksApplication app = ScriptBlocksApplication.getInstance();
		app.setScriptDir(dir);
		app.start();
		

	}
	
}
